<?php

namespace app\validate;

use core\validate\ValidateBase;

class AdminMenu  extends ValidateBase
{
    protected $rule =   [
        'ident'  => 'require',
        'title'  => 'require',
        'type'   => 'require|number',
        'belong' => 'require|number',
        'plugin' => 'require',
    ];

    protected $message  =   [
        'ident.require'  => '标识必填',
        'title.require'  => '菜单名必填',
        'type.require'   => '菜单类型必填',
        'belong.require' => '所属对象必填',
        'type.number'    => '菜单单格式不正确',
        'belong.number'  => '所属对象单格式不正确',
        'plugin.require' => '所属插件必填',

    ];
}
